#include "mygraphicsview.h"
#include "mirrorview.h"

//MyGraphicsView::MyGraphicsView(QWidget *parent)
//	: QGraphicsView(parent)
//{
//
//}

MyGraphicsView::~MyGraphicsView()
{

}
MyGraphicsView::MyGraphicsView(MirrorView* parent)
{
	my_parent = parent;
}

void MyGraphicsView::mousePressEvent(QMouseEvent* event)
{
	my_parent->mousePressEvent(event);
}
void MyGraphicsView::mouseMoveEvent(QMouseEvent* event)
{
	my_parent->mouseMoveEvent(event);
}
void MyGraphicsView::mouseReleaseEvent(QMouseEvent* event)
{
	my_parent->mouseReleaseEvent(event);
}